<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>无界社区 - 分享页</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <script type="text/javascript" src="/style/invite/js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="/style/invite/js/clipboard.min.js"></script>
    <script type="text/javascript">
        var wWidth = $(window).width();
        if(wWidth>750){
            wWidth=750;
            console.log(0);
            //$('html,body').css('width','480px');
        }
        var fontSize = wWidth/7.5;
        $("div.test").css("cssText", "width:650px !important;");
        $('html').css("cssText" ,"font-size:"+ fontSize+"px!important;");
        $('body').css('font-size','0.307rem');
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }
        var download_page = 'http://www.wujie668.com/';
    </script>
    <style rel="stylesheet">
        *{box-sizing: border-box; margin: 0rem; padding: 0rem;}
        i{
            font-style: normal;
        }
        em{
            font-style: normal;
        }
        body{ font-size: 0.26rem; background: #f3f3f3;font-family: PingFangSC;font-weight: 400;}
        img,input{ border: none;}
        .content{
            max-width: 750px;
            margin: 0rem auto;
            width: 7.5rem;
            position: relative;
        }
        .content .imgbg{
            width:7.5rem;
        }
        .content .imgbg img{
            width: 7.5rem;
            display: block;
        }
        .img_btn{
            position: absolute;
            left: 0rem;
            top: 0rem;
            width: 7.5rem;
            padding-top: 6.58rem;
        }
        .img_btn .invit_box{
            width: 5.55rem;
            height: 1.96rem;
            background: #fff;
            border-radius: 0.25rem;
            text-align: center;
            margin: 0rem auto 0.64rem;
        }
        .img_btn .invit_box .invit_t{
            padding-top: 0.4rem;
            width: 100%;
            height: 1.16rem;
            line-height: 0.76rem;
            font-size: 0.76rem;
            font-family: Adobe Heiti Std;
            font-weight: normal;
            color: #00A0E9;
        }
        .img_btn .invit_box .copy{
            line-height: 0.8rem;
            font-family: Adobe Heiti Std;
            font-weight: normal;
            color: #FF594A;

        }
        .loda_btn{
            width: 100%;
            text-align: center;
            margin-top: 0.79rem;
            margin-bottom: 0.94rem;
            font-size: 0.22rem;
            font-family: Adobe Heiti Std;
            font-weight: normal;
            text-decoration: underline;
            color: #FFFFFF;
        }
        .kefu{
            width: 100%;
            text-align: center;
            font-size: 0.22rem;
            font-family: Adobe Heiti Std;
            font-weight: normal;
            color: #FFFFFF;
            margin-bottom: 3rem;
        }
        .tishi{
            width: 100%;
            height: 40px;
            position: fixed;
            left: 0px;
            top: 50%;
            margin-top: -20px;
            text-align: center;
            display: none;
        }
        .tishi.cur{
            display: block;
        }
        .tishi .tishi_t{
            width: auto;
            margin: 0rem auto;
            padding: 0rem 15px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: #000;
            border-radius: 5px;
            display: inline-block;
            color: #fff;
        }

        .onphone{
            width: 100%;
            height: 100%;
            position: fixed;
            left: 0rem;
            top: 0rem;
            display: none;
        }
        .onphone.cur{
            background: rgba(0, 0, 0, 0.5);
            display: block;
        }
        .onphone .white{
            width: 100%;
            height: 100%;
        }

        .onphonebox{
            width: 5.8rem;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -2.9rem;
            background: #fff;
            border-radius: 0.1rem;
            padding: 0.2rem;
            margin-top: -2.5rem;
        }
        .onphonebox .icon_xin{
            width: 1.54rem;
            height: 1.54rem;
            position: absolute;
            left: -0.7rem;
            top: -0.7rem;
        }
        .onphonebox .phone_text{
            width: 100%;
            padding-top: 0.4rem;
        }
        .onphonebox .phone_text .phone_t{
            width: 100%;
            font-size: 0.24rem;
            line-height: 0.64rem;
            display: flex;
        }

        .onphonebox .phone_text .phone_m{
            height: 0.8rem;
            line-height: 0.8rem;
            border: 1px solid #ccc;
            border-radius: 0.1rem;
            padding-left: 0.123rem;
            padding-right: 0.123rem;
            box-sizing: border-box;
            display: flex;
        }

        .onphonebox .phone_text .phone_m input{
            width: 100%;
            height: 100%;
            margin: 0rem;
            padding: 0rem;
            outline: none;
            font-size: 0.26rem;
        }

        .onphonebox .phone_text .phone_y{
            width: 100%;
            height: 0.6rem;
            line-height: 0.6rem;

        }
        .onphonebox .phone_text .phone_y i{
            color:#ff915e;
        }
        .onphonebox .phone_text .phone_t i{
            width: auto;
            font-style: normal;
            font-size: 0.23rem;
        }
        .onphonebox .phone_text .phone_t>:nth-child(2) {
            font-size: 0.26rem;
            color:#ff915e;
        }
        .onphonebox .phone_text .phone_t>:last-child {
            font-size: 0.26rem;
        }
        .onphonebox .phone_text .phone_t>:last-child em{
            font-weight: 600;
        }
        .setphone_btn{
            height: 0.78rem;
            line-height: 0.78rem;
            text-align: center;
            width: 100%;
            border-radius: 0.1rem;
            background: #ff915e;
            color: #fff;
            margin-top: 0.4rem;
        }
        .close_x{
            width: 100%;
            padding: 0.3rem 0rem;
            text-align: center;
            color: #888;
        }
        .myphone{
            width: 5.55rem;
            margin: 0rem auto;
            background: #00A0E9;
            border: 0.03rem solid #FFFFFF;
            box-shadow: 0px 0.11rem 0.24rem 0px rgba(191, 191, 191, 0.96), 0px 3px 7px 0px rgba(0, 0, 0, 0.35);
            border-radius: 0.12rem;
            height: 0.85rem;
            line-height: 0.85rem;
            color: #fff;
            font-size: 0.36rem;
            font-family: Adobe Heiti Std;
            font-weight: normal;
            text-align: center;
        }

        /*图片*/
        .list_main{
            width: 100%;
        }
        .list_main .list{
            width: 100%;
            margin-bottom: 1.63rem;
        }
        .list_main .list .list_t{
            width: 100%;
            text-align: center;
            margin-bottom: 0.84rem;
        }
        .list_main .list .list_t .top{
            width: 100%;
            font-size: 0.7rem;
            font-family: SourceHanSansCN;
            font-weight: bold;
            color: #FFFFFF;
            margin-top: 0.26rem;
        }

        .list_main .list .list_t .bot{
            font-size: 0.36rem;
            font-family: SourceHanSansCN;
            font-weight: 400;
            color: #FFFFFF;
        }
        .list_main .list img{
            width: 5.86rem;
            display: block;
            margin: 0rem auto;
        }
        .ps_bot{
            width: 100%;
            height: 0.62rem;
            position: absolute;
            left: 0rem;
            bottom: 0rem;
            text-align: center;
        }
        .ps_bot .ps_bot_m{
            width:auto ;
            margin: 0rem auto;
            display: inline-block;
            padding-left: 0.3rem;
            line-height: 0.62rem;
            position: relative;

            font-size: 0.22rem;
            font-family: Adobe Heiti Std;
            font-weight: normal;
            color: #FFFFFF;
        }
        .ps_bot .ps_bot_m img{
            width: 0.22rem;
            height: 0.22rem;
            position: absolute;
            left: 0rem;
            top: 50%;
            margin-top: -0.11rem;
        }
        .ps_bot .ps_bot_m a{
            color: white;
            text-decoration: none;
        }
    </style>
</head>

<body>
<div class="content" >

    <div class="imgbg">
        <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/share_nav_01.png?ver=200910" alt=""/>
        <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/share_nav_02.png?ver=200910" alt=""/>
        <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/share_nav_03.png?ver=200910" alt=""/>
        <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/share_nav_04.png?ver=200910" alt=""/>
        <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/share_nav_05.png?ver=200910" alt=""/>
        <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/share_nav_06.png?ver=200910" alt=""/>
    </div>

    <div class="img_btn">
        <div class="invit_box" data-clipboard-text="">
            <div class="invit_t"></div>
            <div class="copy">
                复制邀请码
            </div>
        </div>
        <div class="myphone">
            绑定邀请码，直接激活
        </div>

        <div class="loda_btn" onclick="window.location.href=download_page">
            下载地址
        </div>
        <div class="kefu">
            客服QQ:2146028439
        </div>
        <div class="list_main">
            <div class="list">
                <div class="list_t">
                    <div class="top">
                        遇见心动
                    </div>
                    <div class="bot">
                        两情相悦 激情无限
                    </div>
                </div>

                <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/bg_share_01.png?ver=200910" alt=""/>
            </div>
            <div class="list">
                <div class="list_t">
                    <div class="top">
                        真实高素质
                    </div>
                    <div class="bot">
                        能约高端人群社交圈
                    </div>
                </div>

                <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/bg_share_02.png?ver=200910" alt=""/>
            </div>
            <div class="list">
                <div class="list_t">
                    <div class="top">
                        多种美女类型
                    </div>
                    <div class="bot">
                        美女伴你左右开心high
                    </div>
                </div>

                <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/bg_share_03.png?ver=200910" alt=""/>
            </div>

        </div>
    </div>

    <div class="ps_bot">
        <div class="ps_bot_m">
            <img src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/safe.png?ver=200910" alt=""/>
            <a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备20060413号-1</a>
        </div>
    </div>
</div>

<!--绑定手机下载-->
<div class="onphone">
    <div class="white"></div>
    <div class="onphonebox">
        <img class="icon_xin" src="http://wujieshequ.oss-cn-shanghai.aliyuncs.com/disk/invite/202009/icon_xin.png?ver=200910" alt=""/>
        <div class="phone_text">
            <div class="phone_t">
                <i>输入注册手机号,</i>
                <i>绑定邀请码</i>
                <i>,免填写,<em>30</em>秒注册</i>
            </div>
            <div class="phone_m">
                <input type="text" placeholder="请输入注册手机号" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g, '')"/>
            </div>
            <div class="phone_y">
                您绑定的邀请码是 <i></i>
            </div>
        </div>
        <div class="setphone_btn" onclick="bindAccount()">
            绑定, 并下载APP
        </div>
        <div class="close_x">
            取消
        </div>
    </div>
</div>
<!--绑定手机下载-->



<!--提示框-->
<div class="tishi">
    <div class="hei"></div>
    <div class="tishi_t"></div>
</div>
<!--提示框-->

<script type="text/javascript">
    $(function () {
        var code = GetQueryString('code');
        $(".invit_box").attr('data-clipboard-text', code);
        $(".invit_t").text(code);
        $(".onphone .phone_y i").text(code);
    });
    // 阻止输入框冒泡
    $(".onphone .onphonebox").click(function (event) {
        event.stopPropagation();
    });
    $(".onphone").click(function () {
        if ($(".onphone").hasClass('cur')) {
            $(".onphone").removeClass("cur");
        }
    });
    // 公用提示
    function tips(text, goPage = '', timeout = 1500) {
        $(".tishi").addClass('cur');
        $(".tishi_t").text(text);
        setTimeout(function() {
            $(".tishi").removeClass('cur');
            $(".tishi_t").text('');
            if (goPage) window.location.href = goPage;
        }, timeout);
    }
    var clipboard = new ClipboardJS('.invit_box');
    clipboard.on('success', function (e) {
        tips('复制成功');
        e.clearSelection();
    });
    clipboard.on('error', function (e) {
        tips('复制失败');
    });
    $(".myphone").click(function(){
        $(".onphone").addClass("cur")
    });
    $(".close_x").click(function(){
        $(".onphone").removeClass("cur")
    });

    //请求方法
    function bindAccount(){
        var mobile = $(".onphone .phone_m input").val();
        if (mobile.length == 0) {
            tips('手机号码不能为空');
            return;
        }
        if (! /^1[3-9]\d{9}$/g.test(mobile)) {
            tips('请输入正确的手机号码');
            return;
        }
        $.ajax({
            url: '/mobileapp/Member/memberInviteTemp',//url地址
            dataType: 'JSON',//返回的数据类型
            type: 'POST',//发起请求的方式
            data:{
                'parent_invite_code': GetQueryString('code'),
                'username': mobile
            },
            success:function(res) {
                if (res.code !== 200) {
                    tips(res.msg);
                    return;
                }
                tips('绑定成功，即将前往下载页...', download_page);
            },
            error:function() {
                tips('网络错误，请稍后再试！');
            }
        });
    }
</script>
</body>
</html>
